﻿using System;
using System.Collections.Generic;
using System.Text;


namespace LRSTaxServices.Common
{
	/// <summary>
	/// Database schema constants including default table names, binding fields, and selected PKIDs.
	/// </summary>
	public struct Schema
	{
		#region Lookup Tables

		public struct LookupTables
		{
			#region LU_CompanyMembership

            public struct LU_CompanyMembership
			{
				public static readonly int PKID_None = 1;		// Must match database value!!!
				public static readonly int PKID_Basic = 2;	// Must match database value!!!
				public static readonly int PKID_Small = 3;		// Must match database value!!!
				public static readonly int PKID_Large = 4;		// Must match database value!!!
			}

			#endregion
		}

		#endregion


		#region RBS Roles and Attributes

		[Flags]
		public enum UserRoles : uint
		{
			MASK_Roles			= 0x00FFFFFF,
			Site_Admin			= 0x00000001,
			Software_Developer	= 0x00000002,

			MASK_Attributes		= 0xFF000000,
			ATTRIB_SuperUser	= 0x80000000
		}

		#endregion

		#region Scalar Constants

		public struct HttpContextItems
		{
			public static readonly string DestinationURL = "DestinationURL";
		}

		#endregion
    }
}
